﻿using Husb.DataUtil;
using System.Data;
namespace CentralOffice.PublicAffair.Data {
    
    
    public partial class PostDataSet {
        partial class PostsDataTable
        {
        }
    
        partial class PostsRow
        {
            #region GenerateFilterExpression
            public string FilterExpression
            {
                get
                {
                    string where = "";

                    //where += DataAccessUtil.GetPartWhereCondition("Id", this);
                    where += DataAccessUtil.GetPartWhereCondition("Name", this);
                    where += DataAccessUtil.GetPartWhereCondition("Category", this, DbType.Int32);
                    where += DataAccessUtil.GetPartWhereCondition("Author", this);
                    where += DataAccessUtil.GetPartWhereCondition("Accepter", this);
                    where += DataAccessUtil.GetPartWhereCondition("ContentText", this);
                    where += DataAccessUtil.GetPartWhereCondition("Attachments", this);
                    where += DataAccessUtil.GetPartWhereCondition("Status", this, DbType.Int32);
                    //where += DataAccessUtil.GetPartWhereCondition("IsDeleted", this);
                    //where += DataAccessUtil.GetPartWhereCondition("IsActive", this);
                    //where += DataAccessUtil.GetPartWhereCondition("CreatedTime", this);
                    where += DataAccessUtil.GetPartWhereCondition("CreatedTime", "CreatedTimeEnd", this);
                    //where += DataAccessUtil.GetPartWhereCondition("CreatedBy", this);
                    //where += DataAccessUtil.GetPartWhereCondition("ModifiedTime", this);
                    //where += DataAccessUtil.GetPartWhereCondition("LastModifiedBy", this);
                    //where += DataAccessUtil.GetPartWhereCondition("Version", this);
                    //where += DataAccessUtil.GetPartWhereCondition("Description", this);
                    return where;
                }
            }

            #endregion
        }
    }
}
